package cn.sportvip.entity;

import java.io.Serializable;

import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

/**
 * 包含乐观锁的实体基类
 * @author tao
 */
@MappedSuperclass
public abstract class VersionEntity extends TimestampEntity implements
		Serializable {

	private static final long serialVersionUID = 1L;

	@Version
	private long version;

	public long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}
}
